import React from "react";
import organizationService from "@/services/organization";
import Form from "../Form";
import {ProfileDTO, ProfileVO} from "@/types/common";

const modify= async (params:ProfileDTO): Promise<ProfileVO> => {
  const response=await organizationService.modify(params);
  const {data}=response;
  return new Promise((resolve, reject) => {
    resolve(data);
  })
}

const ModifyForm: React.FC = () => {
  return (<Form onFinish={modify} isModify={true}/>);
};

export default ModifyForm;



